<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="/public/jquery.min.js"></script>
    <script src="/public/fetch.js"></script>

</head>

<body>
    我是首页哦
</body>
</html>

<script>
    var newOptions = {
        method: 'POST',
        mode: 'cors',
        headers: {
            Accept: 'application/json',
            'Content-Type': 'application/json; charset=utf-8',
        },
        body: JSON.stringify({
            name: '小明',
        })
    }

    fetch('http://localhost:7001/api/student', newOptions).then(async (response) => {
        var data = await response.text()
        console.log(data)
        console.log('啥玩应啊啊啊啊啊啊啊啊啊啊')
    })
</script>